<?php
/**
 * Description:
 *
 * @author      Eden
 * @datetime    2016/12/27 14:33
 * @copyright   Beijing CmsTop Technology Co.,Ltd.
 */

include_once(FCPATH . "application/third_party/wechat/include.php");

class Demo extends WX_Controller{
    // 初始化
    public function __construct()
    {
        parent::__construct();
        $options = $this->config->item('wechat');
        \Wechat\Loader::config($options);
    }

    public function test()
    {
    }

    public function index()
    {
        $this->load->view('wx/demo/index.html', [
            'time' => time()
        ]);
    }

    public function car()
    {
        $this->load->view('wx/demo/car.html', [
            'time' => time()
        ]);
    }

    public function detail()
    {
        $this->load->view('wx/demo/detail.html', [
            'time' => time()
        ]);
    }

    public function order()
    {
        $this->load->view('wx/demo/order.html', [
            'time' => time()
        ]);
    }

    public function center()
    {
        $this->load->view('wx/demo/center.html', [
            'time' => time()
        ]);
    }
}
